getOrDefault

inline fun <T> KOptional<T>.getOrDefault(default: T): T(source)

Returns the value if it's present, or default otherwise.